<ion-view view-title="分销查询">
    <div class="bar bar-subheader" style="padding: 0;">
        <div class="item-input-inset crm-item-search">
            <label class="item-input item-input-wrapper ink">
                <i class="icon ion-search placeholder-icon"></i>
                <input type="text" placeholder="输入酒店名称" ng-model="distribution.search.value" ng-change="distribution.search.doAct()">
            </label>
        </div>
    </div>
    <ion-content class="crm-content">
        <ion-refresher
                pulling-text="下拉刷新"
                on-refresh="distribution.refresh()">
        </ion-refresher>
        <ul class="list">
            <li class="item item-divider" style="height:52px;border-top:none;background: transparent; ">
                &nbsp;
            </li>
            <li class='item item-icon-right crm-hotel-list' style="padding-right: 0;height: 59px;"
                 ng-repeat="distr in distribution.data">
                <div class="row row-no-padding">
                    <div class="col-75">
                        <h3>{{distr.hotelName}}</h3>
                        <!--<p>
                            <i class="fa fa-cube"></i>
                            &nbsp;
                            {{distribution.hotelType}},&nbsp;
                            {{distribution.hotelRoom}}
                        </p>-->
                        <p>
                            <i class="fa fa-clock-o"></i>
                            &nbsp;
                            {{distr.updateTime | date:'yyyy-MM-dd HH:mm'}}
                        </p>
                    </div>
                    <div class="col-25" style="padding-top: 0px;">
                        <p style="font-size: 15px;" ng-class="{true: '', false: 'energized-crm'}[distr.status > 1]">
                            {{distr.distributCooperate == 1 ? '已合作' : '未合作'}}
                        </p>
                    </div>
                </div>
                <!-- <span class='item-note'>
                   <i class="icon ion-chevron-right icon-accessory"></i>
                 </span>-->
            </li>
            <li class='item text-center' ng-if="distribution.loaded && distribution.data.length==0">
                <p>暂无数据</p>
            </li>
        </ul>
        <ion-infinite-scroll
                ng-if="distribution.moreDataCanBeLoaded()"
                on-infinite="distribution.loadMore()"
                distance="5%"
                spinner="dots"
                immediate-check="false" >
        </ion-infinite-scroll>
    </ion-content>
</ion-view>